let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n145,
                    i =
                    (this && this.__extends) ||
                    ((_n145 = function n(t, e) {
                            return (_n145 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n145(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        }),
                    r =
                    (this && this.__decorate) ||
                    function(t, e, o, n) {
                        var i,
                            r = arguments.length,
                            a =
                            r < 3 ?
                            e :
                            null === n ?
                            (n = Object.getOwnPropertyDescriptor(e, o)) :
                            n;
                        if (
                            'object' ==
                            (typeof Reflect === 'undefined' ?
                                'undefined' :
                                typeof(Reflect)) &&
                            'function' == typeof Reflect.decorate
                        )
                            a = Reflect.decorate(t, e, o, n);
                        else
                            for (var s = t.length - 1; s >= 0; s--) {
                                (i = t[s]) &&
                                (a = (r < 3 ? i(a) : r > 3 ? i(e, o, a) : i(e, o)) || a);
                            }
                        return r > 3 && a && Object.defineProperty(e, o, a), a;
                    };
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.ScrollTips = void 0);
                var a = t('UIPanel'),
                    s = t('UIViewRes'),
                    c = t('UILayer'),
                    l = t('ScrollTipsItem'),
                    u = t('UIMrg'),
                    h = cc._decorator,
                    p = h.ccclass,
                    f =
                    (h.property,
                        (function(t) {
                            function e() {
                                return (null !== t && t.apply(this, arguments)) || this;
                            }
                            var o;
                            return (
                                i(e, t),
                                (o = e),
                                (e.show = function(t) {
                                    u.UIMrg.show(o, t);
                                }),
                                (e.prototype.onInit = function() {
                                    t.prototype.onInit.call(this),
                                        this.view.targetOff(this),
                                        (this._list = []),
                                        (this.TipsItem = this.view.getChildByName('TipsItem')),
                                        (this.TipsItem.parent = null),
                                        (this._root = this.view.getChildByName('root'));
                                }),
                                (e.prototype.onDataChanged = function(t) {
                                    this._list.push(t);
                                }),
                                (e.prototype.onShow = function() {
                                    t.prototype.onShow.call(this), console.log('===========');
                                }),
                                (e.prototype.onUpdate = function(e) {
                                    t.prototype.onUpdate.call(this, e);
                                    for (
                                        var n = !0, i = o.Speed * e, r = this.coms.length - 1; r >= 0; r--
                                    ) {
                                        var a,
                                            s = (a = this.coms[r]).view.x + a.view.width;
                                        (a.view.x -= i),
                                        s < -20 ?
                                            a.removeByParent() :
                                            s > this._root.width - o.SpaceX && (n = !1);
                                    }
                                    this._list.length > 0 ?
                                        n &&
                                        (((a = new l.ScrollTipsItem(
                                                cc.instantiate(this.TipsItem),
                                                this._list.shift()
                                            )).view.x = this._root.width),
                                            (a.view.y = 0),
                                            (a.view.parent = this._root),
                                            this.addCom(a)) :
                                        0 == this.coms.length && u.UIMrg.close(this);
                                }),
                                (e.RES = new s.UIViewRes(
                                    'ScrollTipsView',
                                    'Tips',
                                    c.UILayer.ScorlTipsLayer
                                )),
                                (e.SpaceX = 50),
                                (e.Speed = 200),
                                (o = r([p('ScrollTips')], e))
                            );
                        })(a.default));
                (o.ScrollTips = f), console.log("end");
            module.exports =  e.exports;